package org.dromara.project.domain.bo;

import org.dromara.project.domain.ContractSupplies;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 合同供货内容业务对象 contract_supplies
 *
 * @author Lion Li
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ContractSupplies.class, reverseConvertGenerate = false)
public class ContractSuppliesBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 合同ID
     */
    @NotNull(message = "合同ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long contractId;

    /**
     * 供货名称
     */
    @NotBlank(message = "供货名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplyName;

    /**
     * 规格型号
     */
    private String specification;

    /**
     * 单位数量
     */
    private String unitQuantity;

    /**
     * 技术标准
     */
    private String technicalStandard;

    /**
     * 技术文件名
     */
    private String technicalFileName;

    /**
     * 技术文件存储地址
     */
    private String technicalFilePath;


}
